/*
 * Part of the ACID Project
 * Developed in 2011 by Morgan Taschuk
 */

/*
 * AcidControlPanel.java
 *
 * Created on 13-May-2011, 16:51:01
 */
package acid.plugin.gui;

import acid.plugin.expression.allpairs.AllPairsExpression;

/**
 *
 * @author morgan
 */
public class AcidControlPanel extends javax.swing.JPanel
{

    /** Creates new form AcidControlPanel */
    public AcidControlPanel()
    {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        separateByButtonGroup = new javax.swing.ButtonGroup();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        overallExpressionButton = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        configButton = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createTitledBorder("Ageing Cross-Species Interactome Database"));
        setAlignmentX(0.0F);
        setAlignmentY(0.0F);
        setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.PAGE_AXIS));

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getClassLoader().getResource("icons/overlay.png")));
        jButton1.setText("Overlay expression data");
        jButton1.setMaximumSize(new java.awt.Dimension(240, 70));
        jButton1.setMinimumSize(new java.awt.Dimension(240, 70));
        jButton1.setPreferredSize(new java.awt.Dimension(240, 70));
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        add(jButton1);

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getClassLoader().getResource("icons/paths.png")));
        jButton2.setText("Discover pathways");
        jButton2.setMaximumSize(new java.awt.Dimension(240, 70));
        jButton2.setMinimumSize(new java.awt.Dimension(240, 70));
        jButton2.setPreferredSize(new java.awt.Dimension(240, 70));
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        add(jButton2);

        overallExpressionButton.setText("Evaluate Overall Expression");
        overallExpressionButton.setMaximumSize(new java.awt.Dimension(240, 70));
        overallExpressionButton.setMinimumSize(new java.awt.Dimension(240, 70));
        overallExpressionButton.setPreferredSize(new java.awt.Dimension(240, 70));
        overallExpressionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                overallExpressionButtonActionPerformed(evt);
            }
        });
        add(overallExpressionButton);
        add(jSeparator1);

        configButton.setText("Configuration");
        configButton.setMaximumSize(new java.awt.Dimension(240, 34));
        configButton.setMinimumSize(new java.awt.Dimension(240, 34));
        configButton.setPreferredSize(new java.awt.Dimension(240, 34));
        configButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                configButtonActionPerformed(evt);
            }
        });
        add(configButton);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jButton2ActionPerformed
    {//GEN-HEADEREND:event_jButton2ActionPerformed
        PathwaySelectionPanel paths = new PathwaySelectionPanel();
        paths.actionPerformed(evt);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jButton1ActionPerformed
    {//GEN-HEADEREND:event_jButton1ActionPerformed
        ExpressionSelectionPanel expressions = new ExpressionSelectionPanel();
        expressions.actionPerformed(evt);
    }//GEN-LAST:event_jButton1ActionPerformed

    private void overallExpressionButtonActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_overallExpressionButtonActionPerformed
    {//GEN-HEADEREND:event_overallExpressionButtonActionPerformed
        OverallExpressionPanel oep = new OverallExpressionPanel();
        oep.actionPerformed(evt);
    }//GEN-LAST:event_overallExpressionButtonActionPerformed

    private void configButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_configButtonActionPerformed
     ConfigurationOptions co = new ConfigurationOptions();
     co.actionPerformed(evt);
    }//GEN-LAST:event_configButtonActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton configButton;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton overallExpressionButton;
    private javax.swing.ButtonGroup separateByButtonGroup;
    // End of variables declaration//GEN-END:variables
}
